package com.qust.EnDecryption.util.net.status;


import com.qust.EnDecryption.util.net.HState;
import com.qust.EnDecryption.util.net.NetTool;
import com.qust.agreement.result.Result;

import java.util.Map;

public class PutState extends HttpState{
    @Override
    public <T> Result<?> handle(String Url, HState state, Map<String, String> head, Map<String ,String > pathValue, T body, NetTool tool) {
        if (state.getCode() != 4){
//            tool.setState(new PostState());
//            return tool.request(Url,state,head,body);
            throw new RuntimeException("没有该方法");
        }
        return this.request(Url,state,head,pathValue,body);
    }
}
